<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Lookup Boxes</title>
    
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/huarui/htdocs/js/extjs/resources/css/ext-all.css" />
   	<script type="text/javascript" src="http://localhost:8080/huarui/htdocs/js/extjs/ext-base.js"></script>
   	<script type="text/javascript" src="http://localhost:8080/huarui/htdocs/js/extjs/ext-all.js"></script>
 	  
    <script type="text/javascript" src="LookupPicker.js"></script>
   
    <style type="text/css">
        p { width:650px; }
    </style>
    <script type="text/javascript">
        if(Ext)
        {
        	//alert("=="+Ext.isReady);
			    Ext.onReady(function(){
							var but=new Ext.Button({
											    renderTo:'buttonPos',
											    text:'选中数据',
											    //menu:'mainMenu',
											    cls:'x-btn-text-icon',
											    style:'background:red;color:red',
											    //点击事件
							            handler:function(){ alert("ok"); }
							          });
	        });
	        //Ext.isReady=true;
	      }
		</script>
</head>
<body>
<input type="text" />
<div id="buttonPos"></div>
</body>
</html>